package com.kanesoft.android.gdx.widgets;

public abstract class GdxWidgets {
    

    protected WidgetEvents spriteEventsHandler;
    
    public boolean enabled = true;
    
    protected GdxWidgets(WidgetEvents eventsHandler) {
        spriteEventsHandler = eventsHandler;
    }
    
    public void setEventsHandler(WidgetEvents eventsHandler) {
        this.spriteEventsHandler = eventsHandler;
    }
    
    public abstract float[] getWidgetVertices();
    public abstract boolean isWidgetOverlapping(GdxWidgets widget);
    
	//public abstract void draw(float deltaTime);
	
	public abstract void draw(float deltaTime, float cameraOffsetX, float cameraOffsetY);
	
	
    public void onPressDown(int x, int y) {
        
    }
    
    public void onPressUp(int x, int y) {
        
    }
	
    public void destroyWidget() {
        
    }
	
}
